# 作者：一只牛吗
# 2025 年02月 01日 04时 08分 23秒
# 1278599690@qq.com
class Parent:
    def __init__(self, height):
        self.height = height


class Son1(Parent):
    def __init__(self, age, *args):
        self.age = age
        super().__init__(*args)


class Son2(Parent):
    def __init__(self, score, *args):
        self.score = score
        super().__init__(*args)


class GrandSon(Son1, Son2):
    def __init__(self, name, *args):
        self.name = name
        super().__init__(*args)


if __name__ == '__main__':
    grandson = GrandSon('小明', 18, 90, 175)
    print(grandson.age)
    print(grandson.score)
    print(grandson.name)
    print(grandson.height)
    print(GrandSon.__mro__)  # 输出类的继承顺序
